package ai.tuobot.sdk.model

internal class TTSCmd(val character: Character, val text: String) {
    /*"tts":{
        "character": { "id": "1", "character_id": "1001", "language": "English"},
        "text":”xxxxxxxxxxxxxxxxxxxxxxx”
    }*/
    fun getNeedFormatedJsonStr(): String {
        return "{\"tts\":{\"character\": {\"character_id\": \"${character.character_id}\", \"language\": \"${character.language?.substring(0,2)}\"}," +
                "\"text\":\"$text\"}}"
    }
}